package com.stormrage.entity.exam.req;

import java.io.Serializable;

import com.stormragetech.core.entity.Page;

public class ExmAnswerReq implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -4101265145277208445L;

	// ------------------------------- Fields -------------------------------

	private String answer;

	private Integer examId;

	private Page page;

	// ------------------------------- Fields -------------------------------

	public ExmAnswerReq() {
	}

	// ------------------------------- Fields -------------------------------

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public Integer getExamId() {
		return examId;
	}

	public void setExamId(Integer examId) {
		this.examId = examId;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	// ------------------------------- Fields -------------------------------

	public static ExmAnswerReq instance(ExmAnswerReq entity, Page page) {
		entity.setPage(page);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : answer - " + answer + " page - " + page;
	}

}
